import request from '@/utils/request'

// 查询我的导师列表
export function listDaoshi(query) {
  return request({
    url: '/system/daoshi/list',
    method: 'get',
    params: query
  })
}

// 查询我的导师详细
export function getDaoshi(id) {
  return request({
    url: '/system/daoshi/' + id,
    method: 'get'
  })
}

// 新增我的导师
export function addDaoshi(data) {
  return request({
    url: '/system/daoshi',
    method: 'post',
    data: data
  })
}

// 修改我的导师
export function updateDaoshi(data) {
  return request({
    url: '/system/daoshi',
    method: 'put',
    data: data
  })
}

// 删除我的导师
export function delDaoshi(id) {
  return request({
    url: '/system/daoshi/' + id,
    method: 'delete'
  })
}
